package com.briup.day09.bean;

public class Zi extends Fu {
    private int z;

    public Zi() {
        System.out.println("子类无参构造方法");
    }
    public Zi(int z) {
        super(10);
        System.out.println("子类有参构造方法");
        this.z = z;
    }
    public int getZ() {

        return z;
    }
    public void setZ(int z) {
        this.z = z;
    }
    public Zi (int f ,int z) {
        super(f);
        this.z = z;
    }
    public void show(){
        System.out.println("访问父类数据成员"+super.getF());
        System.out.println("访问数据成员"+this.getF());
        System.out.println("super"+this.z);
    }
}
